﻿using com.nm.Attributes;
using com.nm.library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VerticaAPI.model
{
   public class EndsDisplayMeasureModel
    {

        public class EndsDisplay
        {
            /// <summary>
            /// 品牌
            /// </summary>
            public string ExtrSource { get; set; } = UserInfo.UserExtrSource;
            /// <summary>
            /// 公司代码
            /// </summary>
            [ParamDescription("公司代码")]
            public string CompanyID { get; set; } = UserInfo.UserCompanyId;
            /// <summary>
            /// 店铺内码
            /// </summary>
            [ParamDescription("店铺内码")]
            public string ShopID { get; set; }
            /// <summary>
            /// 店铺编号
            /// </summary>
            [ParamDescription("店铺编号")]
            public string ShopCode { get; set; }
            /// <summary>
            /// 店铺名称
            /// </summary>
            [ParamDescription("店铺名称")]
            public string ShopName { get; set; }
            /// <summary>
            /// 货号
            /// </summary>
            [ParamDescription("货号")]
            public string MaterialID { get; set; }
            /// <summary>
            /// 最低陈列量
            /// </summary>
            [ParamDescription("最低陈列量")]
            public int DisplayQty { get; set; } 
            /// <summary>
            /// 旧的店铺内码
            /// </summary>
            [ParamDescription("旧的店铺内码")]
            public string OldShopID { get; set; }
            /// <summary>
            /// 旧的店铺编号
            /// </summary>
            [ParamDescription("旧的店铺编号")]
            public string OldShopCode { get; set; }
            /// <summary>
            /// 旧的货号
            /// </summary>
            [ParamDescription("旧的货号")]
            public string OldMaterialID { get; set; }

            public DateTime LoadTime { get; set; }
            public DateTime EtlTime { get; set; } 
        }
        //保存，新增的list
        public class EndsDisplaySaveList: EndsDisplay
        {
            public IList<EndsDisplayDeleteModel> List { get; set; }
        }
         


        public class EndsDisplayDeleteModel
        {
            public string ShopID { get; set; }
            public string ShopCode { get; set; }
            public string MaterialID { get; set; }
        }

        /// <summary>
        /// 删除实体
        /// </summary>
        public class EndsDisplayDeleteModelList
        {
            public IList<EndsDisplayDeleteModel> List { get; set; }
        }
        /// <summary>
        /// 导入的list
        /// </summary>
        public class EndsDisplayImportModelList
        {
            public IList<EndsDisplayImportModel> List { get; set; }
        }
        ///导入到model
        public class EndsDisplayImportModel
        {
            [ParamDescription("店铺编号")]
            public string ShopID { get; set; }

            [ParamDescription("店铺名称")]
            public string ShopName { get; set; }
           /* [ParamDescription("店铺内码")]
            public string ShopID { get; set; }*/
            /// <summary>
            /// 店铺编号
            /// </summary>
            [ParamDescription("店铺编号")]
            public string ShopCode { get; set; } 
            /// <summary>
            /// 货号
            /// </summary>
            [ParamDescription("货号")]
            public string MaterialID { get; set; }
            /// <summary>
            /// 最低陈列量
            /// </summary>
            [ParamDescription("最低陈列量")]
            public int DisplayQty { get; set; }
        }


    }
}
